update core data