postgres:db syntax changes + dependency messup

The PostgreSQL syntax changed so patch accordingly, if you do not what to keep up, the specify the dependencies, with versions.
Also the dependencies was messed up badly.