test db operations