database translators refactoring