Switched from sqlite db to mysql, implemented basic search function via thinking sphinx.