Adds index to student_id in studies.