Completed the validated form and created a class to write to the database creating links to each relevant table.