Complete Java programs to access the MongoDB with MongoDB Java Driver