sped up db_stats.pl