The state database is used to store the state of equipment and devices. This includes any previously run lots along with their metrology, timestamp, tool, etc. Each controller developed can have zero or more individual state databases with its own set of context (tool, technology, device, etc.). With the Process Control Framework being XML based, it only make sense to have state records that are XML structures. This allows for organization of state data within the state record.