Replace dbal to orm