Adding some debug stuff
Reformat an already-created atram_db
do the check to see if the output path needs to be created.
$tempdir is a redundant variable.