refactor(download_total): optimize download total

Use downloads table instead of download_total

Fixes #544
use __all__ for full downloads
Merge pull request #545 from cnpm/refactor-downloads

Refactor downloads