from pymongo import MongoClient from config import MONGODB_URI client = MongoClient(MONGODB_URI) db = client.get_default_database() collection = db["detailed_analysis_v2"]