update statistics scripts