Their dams cause floods, and that gets them in trouble with humans. But in the right place, more water can be a big help.