Finished form layout. Added processing of the form and saving the results to the database.