adding database class to project