Grades is one third of the way converted to python. Still need to check fetchOne doesn't freeze the cursor