use arel to make search query portable

PostgreSQL does a case-sensitive search with the `LIKE` operator, for case-insensitive conditions one has to use the `ILIKE` operator.
Arel chooses the correct operator for the dbms engine in use when doing a query with a `matches`.