Completely ORM-ized pages module