*Looks through Cys_General*

Looking at how the game handles the Tutorial...

Code
IF
CharacterLeftTrigger(_Char,TRIGGER_PlayerCell)
AND
_Char.IsPlayer()
THEN
DB_JailBreak(1); 

IF
CharacterSawCharacter(CHARACTER_LUCS_NPC_M_N_ImmaculatePrisonPatrolGuardBase_000,CHARACTER_Player2)
AND
DB_JailBreak(1)
THEN
NOT DB_JailBreak(1);
DialogStartTwoSpeakerDialog("guardcatchkey",CHARACTER_LUCS_NPC_M_N_ImmaculatePrisonPatrolGuardBase_000,CHARACTER_Player2);



If I'm understanding how the tutorial is done, the first IF will make a new database, and then the second IF (your event) will check whether that Database exists.