modified:   ranking.py

Added some SQL stuff