added some indexes to speed up statistics load