changing database relationship and removing ParentChild table