PDO-based autosync and ORM