fix logic for storing info in mongo on a save