Sounds like what you unplugged was the intake air temperature (IAT) sensor. The MAF is the one on the top side of the throttle body with a 3-wire plug. The "vac leak" sound you hear when it bogs is probably the idle air control (IAC) valve opening trying to bring the idle back up. Does it sound like a vacuum cleaner when it does that?