How to save submission data to my own database?