remapping db models