added mongoDB integration, added socket.io integration for saving data