added updateDatabase() to udpate date base with information entered in the fields, runs on submit press