Thanks Nathan and Paul! Any chance the database schema drawing is available somewhere? I'm guessing the machines.layerbranch points to layerItems.id?