Going back in time, company ABC should have recorded on their books the loan taken out by DBA against ABC assets. Upon sale this loan would have to have been satisfied through the sale proceeds. If the loan was through a financial institution it should have been recorded with the property as collateral and pledged. Unless the lender is willing to reassign the loan to another property owned by DBA then ABC must pay off the loan. But since funds were used by DBA then DBA owes ABC the money to pay it off.
What could have been done was, ABC show the loan on the books, but then turn around and loan this money out to DBA. There has to be a recording of the transaction in both companies