Integrating core data in the table view controllers