added database interaction functions
Merge branch 'master' of github.com:stuycs-softdev/proj1-7