Please consider wrapping your code samples in backticks (on newlines) to help with formatting. For example:
```
Your code here
```
That being said, check out this related forum post:
I would recommend staying away from DBRef’s. Check out that post for alternatives, or dive directly into the Guide’s Publishing relational data and/or Associations between collections sections.