Associate and nest topics and posts. Add related posts logic