copy write-ahead-log to tmpdir, VACUUM the db before using it