DB aggregation for downloads stats