A simplified implementation of the data mapper pattern