Fix ThreadParser for thread with only one page.
Add searching thread ids and store results in database in scheduled
task.