The elasticity branch does not currently have functioning upgrade code. Need to implement upgrade from 3.1 to 4.0.