working in the db