JC: added self.primary_key=:id to engine config model.