MongoDB class fixed