Added code for mongodb java tutorial