Moved some responsibilities from DbRecord to DbEntity