section api: pull some queries outside of transactions to try to fix deadlock problems
Merge branch 'production' of github.com:code-dot-org/code-dot-org into production