ThreadPool introduced in updating database