add thread pool
fix close db connection
fixed log