diff --git a/Control/AthenaConfiguration/python/AllConfigFlags.py b/Control/AthenaConfiguration/python/AllConfigFlags.py
index 8cbe2f60e718df79370c5535204ae9d1470bd064..4d08502454efd8bb1418da1082e55c7b26c67734 100644
--- a/Control/AthenaConfiguration/python/AllConfigFlags.py
+++ b/Control/AthenaConfiguration/python/AllConfigFlags.py
@@ -156,6 +156,7 @@ def _createCfgFlags():
     # Run dependent simulation
     # map from runNumber to timestamp; migrated from RunDMCFlags.py
     acf.addFlag("IOVDb.RunToTimestampDict", lambda prevFlags: getRunToTimestampDict())
+    acf.addFlag("IOVDb.DBConnection", lambda prevFlags : "sqlite://;schema=mycool.db;dbname=" + prevFlags.IOVDb.DatabaseInstance)
 
 
     def __bfield():
diff --git a/Database/IOVDbSvc/python/IOVDbSvcConfig.py b/Database/IOVDbSvc/python/IOVDbSvcConfig.py
index 3b5222ff6a70efcab3a10c1c61152599c2b9bc5e..ef1ab751beb6816c66169a402c6c50ac442bddd1 100644
--- a/Database/IOVDbSvc/python/IOVDbSvcConfig.py
+++ b/Database/IOVDbSvc/python/IOVDbSvcConfig.py
@@ -34,12 +34,10 @@ def IOVDbSvcCfg(configFlags):
 
     # Set up IOVDbSvc
     iovDbSvc=IOVDbSvc()
-    dbname=configFlags.IOVDb.DatabaseInstance
-
-    localfile="sqlite://;schema=mycool.db;dbname="
-    iovDbSvc.dbConnection=localfile+dbname
+    
+    iovDbSvc.dbConnection=configFlags.IOVDb.DBConnection
     # setup knowledge of dbinstance in IOVDbSvc, for global tag x-check
-    iovDbSvc.DBInstance=dbname
+    iovDbSvc.DBInstance=configFlags.IOVDb.DatabaseInstance
 
     if 'FRONTIER_SERVER' in os.environ.keys() and os.environ['FRONTIER_SERVER']!="":
         iovDbSvc.CacheAlign=3