improved ORM utility classes