Big improvements to ORM, actually seems to work now, even with update and delete. Needs lots of cleaning up and debugging though, as a work in progress