Add SQL logging.
Merge branch 'develop' into searchscaffold