fix(services/download_total): fix download_total slow sql

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