last 50 threads
ajax pagination for threads
pg_search documents reset
only one search result for a thread

database changes adding q_id to pg_search_documents table and using
.uniq to find results that have same q_id and then displaying them
accordingly. The code for displaying documents is now removed
lorem ipsum