implemet MagicalRecord CRUD