max db connections

this allow limiting the max connections per db, on top of per pool. useful if you have multiple users that access the same database, especially if using auth_user support.

Note that this is on top of the dev/auth_user branch so that it merges cleanly. only the last five commits are this feature