I agree about the 100% water change and depletion of bacteria from the foam - it's certainly not something I would ever do anyway.
Even if you didn't kill all the bacteria Bev, if the tank was cycled, something was supplying them with food. The remaining bacteria could not handle it.