Updating colIndex when reading tables