MongoDB module cleanup