fixed issues causing tree write errors. Changed archive handling to extract to db_path rather than just a tempfile. Users can worry about space themselves