Errors in the DelDep code -- I was referencing the cursor loop
columns by name instead of dbname.

I also corrected the indentation of the sub-object reference clearing code.