add mongodb to java example