MySQL optimization for Chat Server(red5)