Doctrine/ORM, Sms to DB, Refactor