Implemtion of database transformer.