Corrected search borrower sql queries