Connect MongoDB in a java application and starting MongoDb server from Code for beginners