update statistics table