Added beginning of database class