change DbConfig to the Singleton Pattern