Fix postgres connection pooling

I rewrote most of the connector manager for postgres.

Now supports connection pooling and max concurrent queries.

The structure is based on the mysql connector manager.

From my own experience, I get a huge speed improvement with the new connector manager.