optimize unique stats tasks by using the cell/wifi tables

this avoids full table scans of the large cell_/wifi_measure tables and uses
the recently introduced created fields in the cell/wifi tables
remove unused import
Enhance global stats to show latest available data as a fallback, closes #32