fixed postgres
Merge pull request #33 from ahlen/master

fixed postgres