fixed some issues in postgres full text search and transferred "deleted" info onto the thread objects