tersting db operations