added relationships between tables