remove double quote from query to Postgresql