refactor(download_total): optimize download total

Use downloads table instead of download_total

Fixes #544