How can I export form data to external database?