add script to clean out duplicate periodic records