Moved the ref function from mongoose to a separate helper
Moved ref function from mongoose to separate dbHelper
Merge pull request #2 from TheEskhaton/master

Moved ref function