Modify LoanDAO to not use repeat code.