Contents and pages reference each other on a join table