Add first version of database class