an ORM class for phpcassa