adding db operations