created database class