How to save submissions to my own database?