better version of socket.emit of mongo data