D-backs lose final game to Dodgers 3-1