Hello,
there are already few topics related to MongoDB connection. Please have a look and in case of questions, post them there.
Thank you.