core data example with simple db schema