Adding base of database class and tests
Adding model variable to database class