adding check to check_slave for the case of a demote master in a geo DR setup. Also added check for too many connections in get_slave_info