Added ability to populate relationship data in createRelationship function