I'm pretty sure he's essentially defining the database DB_UlfredTriggered with the NOT clause. Then, when the adds spawn, the database is filled with a number. Since the IF-statement requires that there's nothing in this database, placing something into that database once the adds spawn prevents the adds from spawning over and over again.