Connect to MongoDB database using mongoose module.