Revert to case-sensitive match. Improve logging.

Case-insensitive matching was slower, and used the Postgres-only ILIKE operator.

Logging now only includes a descriptive 'match type' rather than the actual SQL
used, and now also includes performance timing and uses ISO date format.