added database class

database class makes a connection to the db, then it can call various
predefined queries