[Azoth] Code style fixes.
[Azoth] Prefer non-modifying queries.

Probably fixes #1548.