refactor method names
fix last category hits and downloads sql. Test ok.