fix logic for determining the most recently stored raw data
[BZ 1105032] make sure we set gc_grace_seconds on the right tables