Change query for get method of loanDO