Fixed variable names
Restored index on usermedia(score)