Added persisting function. Am going to save the current value to MongoDB.