Rebuilding persistencemanager