Added RelationTable, RelationTypeTable

with working tests