Support setting max number of mysql connections allowed

there's a setter method in this pr as well