refactored ConnectorDjango._commit_changes