Use createConnection in mongoose.