added utility functions to connect to the database and execute queries. also added a model for updating the database when a successful form sumbission has occurred