add support for translating to database adapter