MongoDB class work