Hello Simon,
Welcome to the Community - thank you for your question!
The payment of the loan into your account can be categorised as either Owner's deposit or Business income - this is something we would advise to check with an accountant to make sure it posts to your self assessment correctly. In regards to the payments back, you would use the Repayments of loans/overdrafts category.
Thanks,
Talia