moved the db_repository into the config module