ExpireEntries converted to QueryDatabase