Implemented Popular Topics

Added db query to make popular topics dynamic.
Cleaned up query on popular downloads.