added queries for all types of db operations