add tuples and relations