updated SQL script (that was incomplete)
do not allow phd registration when not defended or defended prior 2000