Saves all database data when form passes validation