First attempt at an ORM-like interface to the PRDB.