Mark Ellis hit a go-ahead RBI double with two out in the sixth to build off Adrian Gonzalez's homer, double and three RBIs as the Dodgers beat the Cardinals, 5-3, at Dodger Stadium to win for the third time in their last five games.