Log and email when done with cleanup with consistency check. Log messages fixes.
SQL exist statements to check metadata exits.
Fix newline.
Fixes, implement archive existence check.