helper for updating dataset summary stats