fix ranking algo
Ranking integrated with db
Merge branch 'master' into popular_tags_with_db