added more checks to cascading delete so only dbxrefs remain after a project is loaded and deleted