Headley drives in 3 to help Padres top Dodgers 4-2