purge old data periodically