fixes for DBAL driver