Fix invalid comparator generated sql
Case insensitive now use ilike in postgresql