Commit before changing from MongoDB to shelve