Refine XDb servivce.