completing conversion from DBAL to ORM