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

Why can't you just do a `db.execute "VACUUM;"` later?