Use core data for files
Update File related stuff in Core Data