MongoDB access using java api