Log submission time with data.
Deleted logged data if MySQL aggregations fail to write.