Updates table name and layer id