Changed the ORM implementation to use reflection