reset script fixed for new schema (libraryEnabled deleted)