Fix sync too.

Previous fixes were just for csv export
ome more tweaks to salesforce sync