work with the db