Sizeable improvements to string searching speeds.

Took the really from 3mins to 1.9 secs

[martini] Started GET /api/relatedstrings/1a0408b99c6355ac28f137f7acd82363b4ea5524d3161ab9105b706b889
[database] Asked for MySQL connection
[martini] Completed 200 OK in 3m56.4670559s
[martini] Started GET /api/relatedstrings/1a0408b99c6355ac28f137f7acd82363b4ea5524d3161ab9105b706b889
[database] Asked for MySQL connection
[martini] Completed 200 OK in 1.9282865s