replace mongoose.connect with createConnection