MDL-50385 grades: Adding index to improve history search