db.exercise_log.find().forEach( function(item)
{ db.exercise_log.update({'_id': item._id},
{'$set': {'type': parseInt(item.type)}}) } )
db.exercise_log.update({}, {'$rename': {'old_name': 'new_name'}}, false, true)
db.exercise_log.find().forEach( function(item)
{ db.exercise_log.update({'_id': item._id},
{'$set': {'type': parseInt(item.type)}}) } )
db.exercise_log.update({}, {'$rename': {'old_name': 'new_name'}}, false, true)