DH Davis gets win, O's outlast Red Sox in 17