Moved the db traits to the db package