bet management

bet management and sql request optimisation