started with database class implementation