update purge to use the correct tables