How can I capture submitted data in my own database?