How to save submission data in SQL database?