Upgraded mongoose from 3.5 to 3.7, fixed a few Model schema bugs