Fixed broken import of urlparse
Fixed database name
ObjectId as primary key
tiny fixes
Using mongokit JSON encoder
tiny fixes