Use integers instead of UUIDs for stack frames

Some implementations of Data::UUID are written in Perl, which causes
infinite recursion when allocating a UUID when entering a sub.  This
way, control never leaves the DB package, and we don't recurse back into
DB::sub()