fixed bug in monitor with 2 vars not set with empty db
added checks in populate guid