link between socket.io's update delete and create and mongoDB