Mongodb CRUD operations implemented by Java