Managing local and remote data