more changes in db operations