Old function, updated to use new Config->getDBOptions()