Refactor setting.Database.UseXXX
to methods
#23354
Merged
setting.Database.UseXXX
to methods
#23354