Added thread_id column to schema. Changed routing parameters to thread_id for matchthread view.