add affected tables