refactor saveData for separate connectors