define db operations