Learning how to connect Mongo and Java