started working on database class