Added some code for multiplayer and fix some speed bug to MYSQL