Mongoose, Socket.io, Express.js snippet