Add coredata to store metadata in a sane way