ORM session handler helper