added ddl for relationship tables