Use CONCAT instead of + in SQL.
Add postgresql support.
Drop thinking_sphinx and start using pg_search.
Refactor search to use pg_search.
Add newline to end of file.