Changed AnalysisData add to do sql update as well