Add SQL relations between the GlobalId table and the Project/Issue/PullRequest one