passing the db