fix upgrade code, add training data option to sqrrl vm appliance