update statistics script