Add a query for total loans