sql fix for topdownloads

Signed-off-by: Sweil <mail@sweil.de>