fix creating and dropping database on PostgreSQL
Merge branch 'hotfix/backport-#757-DBAL-1093-to-2.4' into 2.4