Postgresql model fix

Model update to fix #132 on /dev branch.