Add setter for console log format.

Closes #267.
Make database commands exit with non-zero status on failure.

Closes #262.