Hudson and Gallardo set tone for D-backs, Brewers