Adding first version of database class