cleaning up dead tables