Add in database class. Add in globals variable