fix postgres
Merge pull request #333 from cgzones/os_dbd-fix2

fix postgres