Cards edge Dodgers 2-1, extend wild-card lead