Switched from a pure database interaction to an ORM system