Escape underscore in SQL query to prevent it being treated as a wildcard
Modify links in log output to point to enrolment methods pages instead of course pages