Remove UDP stats code.
Remove unused methods.
Reduce mysql connections.