Easier case-insensitive searching with ILIKE
Extract constants, to show similarities in the search algorithms