Use database time when calculating cleanup intervals.

[#77035540]
Signed-off-by: Zach Robinson <zrobinson@pivotallabs.com>