I think pressure depends on the pressure of water column + atmospheric pressure above a unit area. Dam has huge potential energy due to height above sea level and hence large pressure is applied to the walls of the dam. Does it in any way affect the pressure in the bottom of the dam. This question may sound stupid. But I failed to find the exact mathematical formulas to prove it.