Allowing for a pre connected db obj to be passed.