Minor code cleanup
Fix bug for granularity changes not updating AnalysisRecords
Added GranularityMax stat to chart summary table
Bug fixes for granularity changes propagating to all tables