Changed the DmgState class to have a foreign key to RiskCalculation; fixed the export mechanism