adding some links between tables