Switching to ORM from raw queries.