finish backend merchant update function