cleanup (AISVIEW-1)
Experimental pastTrack based on sampling the db (overhead of executing many queries is actually a problem) (AISVIEW-1, AISVIEW-4)