Use a trigram index to speed up find queries

Fixes #8