Adding CoreData Function [Update Database]