Fixes for integration tests

These commits cover fixes for Oracle, Mysql and PostgresSQL