Fixing DB and updating gems because of sec. vulnerability in Rails