Fixing import bug, reducing queries for teachers.
use cached session to avoid (slow) db-writes when updating session data