adding database class