Fix: sql request with pgsql