removed queries affecting _daily and _images totals on deletion