The global you want to set before talking to Demin is
"P#DeherianaLives","GLOBAL" --> set the value to 1.
If Kivan won't talk to Demin at this point of the game (you do not have a save), set the variables as follow:
SetGlobal("P#DeherianaLives","GLOBAL",2)
SetGlobal("P#DehWelcome","GLOBAL",1)
SetGlobal("DerminJob","GLOBAL",1)
and summon Deheriana via console, CreateCreature("P#DEHER") You might have to Ctrl+Q her in the party if her initial dialogue won't play.