Record use core data

include words 、image and video. improve some code and logic