The dam was built by the railroad company to provide water for the trains