Ensuring that a new instance is constructed with connection settings