Count live puzzles in SQL
Refactor out SQL clauses about users not being related
Speed up puzzles-for-user counting through SQL