Search now works in MySQL

Fixes #294