Postgres module corrections

* fix db_list(): return dict instead of plain list with dbs and properties
* fix user_list(): was broken
* version() now return server version instead of client version
* add handling db setting
* cleanup, pep8 fixes