adding relationships between tables