Improving water quality and agronomics by managing drainage water