Ensure DBRef have DB set.
Merge pull request #9 from mathieubodin/master

Ensure DBRef have DB set.
formating