Remove duplicate sql request