Hello I am a solicitor with over 15 years experience. I will try to help you with this.
You have borrowed money and now are selling your property. You borrowed the money on condition you would pay it it back after selling the property. it is perfectly acceptable fro you to settle the debts when you sell the property and to then inform the DSS of your level of debts after sale and payment of outstanding debts. It wuuld be very sensible though to keep a clear record of what you owe to whom and when it is repaid and why. Also receipts migt be a good idea.