Further improvements and refactoring to ShrewFramework ORM.