mongoose refactoring
Merge pull request #1 from minsh/jon

mongoose refactoring