You really don't need three tables for this
A table such as this would allow an infinite number of levels
CREATE TABLE
ID INT PRIMARY KEY IDENTITY,
ParentID INT NULL
NAME [nvarchar] (500) NOT NULL
The data would be like this
1, null, Main
2, 1, Child1
3, 1, Child2
4, 2, SubChild1
for this hierarchy
Main
> Child1
>> SubChild1
> Child2