Fixing bug with dm-postgres-adapters