def _get_db_settings(self):
        config_path = os.path.expanduser(
            self.config.FrameworkConfigGet('DATABASE_SETTINGS_FILE'))
        settings = {}
        with FileOperations.open(config_path, 'r') as f:
            for line in f:
                line = line.rstrip()
                # Ignore empty/comment lines.
                if not line or line.startswith('#'):
                    continue
                try:
                    key, value = line.split(':')
                    settings[key.strip()] = value.strip()
                except ValueError:
                    self.error_handler.FrameworkAbort(
                        "Problem in config file: '%s' -> Cannot parse line: %s"
                        % (config_path, line))
        return settings
Create DB settings according to the configuration file.
dataset/ETHPy150Open owtf/owtf/framework/db/db.py/DB._get_db_settings