ADDED grades.save, cor.query