Switch from truncate to WAL journal mode.

Refs #1798