-Changed object handling in API from JSON to dict since MongoDB driver can handle dicts better.