Improve chain analysis controller
Update database