[orm] fixes according to DBAL API changes