Added unique constraint to judge name