db part:2 to 3
python2 to 3

fix some bugs
movie_related ranking

by zjt ,20141024
Merge remote-tracking branch 'origin/master'

Conflicts:
	db.py
	virtdb.py