db transformations