Fixed Ruell's mongo functions