updated ORM model to use smart getter/setter functions