add relationships in db