fix to postgres update
Merge pull request #46 from sylwesterkondracki/master

fix to postgres update