MongoDB connection from java batch