Avoid adding duplicate tables in the purge-list

This can happen with table inheritance or something, I had many many duplicates in there.