refactored the logic for update_analysis_stats so that it updates the stats on all anlyses, not just the ones with entries in the analysis_job table. New logic is also faster.
refactored the logic for update_analysis_stats so that it updates the stats
on all anlyses, not just the ones with entries in the analysis_job table.
New logic is also faster.

Ensembl/ensembl-hive,Ensembl/ensembl-hive,Ensembl/ensembl-hive,Ensembl/ensembl-hive