Add pgsql_conn_max configuration parameter.

Allows you to tune how many pgsql connections kore
will make at one time.
Fix module configuration