Upgrade ruby version and fix data dump to mongo