update core data and service