blueprint of database class