vid 24:
added query for database
now submit button actually submits info to the database