solve the judge.py score problem

get the total score from database now