Refactored & switched to mongoosejs