change syntax from pg's SIMILAR to mysql's LIKE