Committing mongodb changes