modified sync_customer to work with related_model