implementing db engine functions. can now create, update, delete and get db data