Minor fixes to the AbstractDBModel