Basic form processing
Added saving of form data to the database.