Added update functionality to mongodb out node