Update the sync_by_dealer Stored Procedure