Export all records even when no match is found in JOINs

I changed every JOIN to a LEFT JOIN to keep records
from the relation to export, no matter what.