Using mongodb instance from mongoose.

Fixes the error when trying to require mongodb.