Updated the postgres example code.
merged