Added sql check on player join