add project entities and set relationships