added basic db operations