first example of the course of mongodb in java