Update extraction logic for MONGO_URL