update little coreData

let request = NSFetchRequest(entityName: USERDATA)
do {
user = try (coreData.managedObjectContext.executeFetchRequest(request) as! [UserData])[0]
} catch {
fatalError("Error get data from CoreData")
}
user.id = data.array![0].dictionary![ID]!.string!