Merge duplicate loan records and download loan data