Update Layers and TOCLayers tables

Update Layers and TOCLayers tables