fixed sonar issue in DBConfigFactory