DOMA only needs 40 stated to be overridden per its own language.
True, but even if repealed DOMA doesn't have any effect on whether a state can ban gay marriage or not, all DOMA does is prevent federal recogniton (and benefits) to gay couples in the states that do recognize it.