Rework the mechanisms for versioning the databases