No need to split it into compartments. The 40 breeder a pump, filter socks, and bio is all you need.
We can help with the plumbing aspect. Did you purchase the tank already ? If so and it isnt drilled you can do a hob oveeflow and sump but if it were me i would just go with hob filters or canisters. Those hob over flows can cause floods.
You can also drill your own holes if the glass isnt tempered