public static void printElementByIndex(DBCollection collection, int index, boolean idShow) {
        DBCursor cursor;
        if (index == 0) {
            cursor = collection.find().limit(1);
        } else {
            cursor = collection.find(null, new BasicDBObject("_id", idShow)).skip(index-1).limit(1);
        }

        try {
            System.out.println(String.format("\n find %s element : %s \n", index, cursor.next()));
        } finally {
            cursor.close();
        }

    }