Remove the global conn variable. fixes #11831

This should have been removed before the previous pull request
Merge pull request #11832 from gtmanfred/serviceCatalog

Remove the global conn variable. fixes #11831