changed stuff in mangodb.py, should work