Postgre fixes
Merge branch 'master' of https://github.com/nortal/DataBata