Merge "Update wal mode of the connection when disabling WAL"