core data with relations and search bar