Created database class