batch db operations