Clean up lender hierarchy data call by using django orm.