Allow db_manage to be used by the new config generator

Go back to using the global CONF object, but use the import_opt()
function to get at CONF.database.connection

Change-Id: I739b1be9501f70f9b8c9aacd883162b1e8c1e09a
Merge "Allow db_manage to be used by the new config generator"