MongoDB store
socket.io refactoring