• Sorry for the late reply. Thanks for your feedback.

    Calling the referenced object a "child" of the dbobject was something of requirement at my end. I assumed people using the code may change it as per their needs, so I kept it as it is.

    I couldn't recreate the scenario you pointed out. It would be helpful if you could share more details about it so the issue can be tackled.