add tablename and index to the output of columns statistic