Allow connection for addDimension to get access to the database

This should get moved to initialize() and the test can go away.