1. A switch, comprising: one or more ports; a persistent storage module adapted to store configuration information associated with the switch in a data structure in a local persistent storage, wherein the data structure includes one or more columns for attribute values of the configuration information; and a restoration module adapted to instantiate a restoration database instance in the persistent storage from an image of the persistent storage; a retrieval module adapted to retrieve attribute values from a data structure in a current database instance and the restoration database instance in the persistent storage; and wherein the restoration module is further adapted to: apply differences between attribute values of the restoration database instance and the current database instance in the persistent storage to switch modules of the switch; and operate the restoration database instance as the current database instance in the persistent storage.