fixes to CCA for E_NOTICE
Fix bugs in CCA data upload.

  $TS undefined in each upload function
  Inefficient queries to delete old test data
  Wasn't deleting old TDH records
  Wasn't ignoring rows with TS_REMOVED in COLDCARTS