Support setting max number of mysql connections allowed

I'd suggest the default to be 10 or something reasonable for a monitoring system. If 0 means unlimited - that seems a little dangerous