Minor fixes on Betting; overall SQL connection speed increase