In the UserConfig file I have change the name of the Hub DB, when trying to prepare Hub, I am getting the error from above, the issue seems to be that the web.config is not updated automatically with the Hub DB name from the UserConfig file.
After manually changing the Hub DB name in the web.config, preparing the Hub environment was successful.