Allow connection for addDimension to get access to the database
Move connection setup to initialize()
Merge pull request #612 from pramsey/master

Allow connection for addDimension to get access to the database