refactering DBConfig