update queries to be more efficient
Merge branch 'release-0.10' of github.com:learningequality/ka-lite into efficient_student_view
Merge branch 'account_management_fixes' into efficient_student_view
Merge pull request #629 from bcipolli/efficient_student_view

Efficient student view