Exports mongo functions