new function addRelation(id1, id2, relation)