Fixed issue
Added relationships to coredatamodel