Core data demo properly queries for and inserts objects.