Add procedure to create relations