Java Examples connecting to mongo