Adding MongoDB player management code