moved MagicalRecord to prod use, deleted useless code