Include investments into loan query when scraping loans