fix(services/download_total): fix download_total slow sql

Use `date in ($ranges)` instead of `date >= $start and date <= $end`

Closes #540