# Why does my MongoDB connection open an empty database?

Canonical URL: https://help.iagenify.com/faqs/databases/why-does-my-mongodb-connection-open-an-empty-database

[← Back to Databases FAQs](https://help.iagenify.com/faqs/databases)

HELP CENTER · FAQ Databases 2 min read
# Why does my MongoDB connection open an empty database?
The SDK reads the MongoDB database name from the path in the connection URI. If the URI has no database name, the connection uses `iagenify_db`, which may be empty even though your data exists in another database on the same server.
IaGenify
Databases

## Check the database path in the URI
A MongoDB connection URI contains a host and may include a database name after the slash, such as `mongodb+srv://host.example/mydb`. That path selects the database used for operations. If you save a URI without a database path, the SDK falls back to the documented `iagenify_db` name rather than guessing which database you intended.
This can make a successful connection look like a missing-data problem. The server may be reachable and authentication may work, while a `collections` or `find` operation reads from a different database than the one where your records live. Confirm the intended database name with the database administrator before changing the URI.
## Verify the target before querying or writing
Update the saved connection with the URI containing the correct database path, keeping the secret in the protected credentials field. Then run a read-only operation such as listing collections or checking a known record. Confirm the selected connection and database before starting inserts, updates, or a workflow that changes data.
Do not paste a full URI into a support request because it may contain a password. Share the provider, sanitized host, intended database name, operation, and error instead. If the database still appears empty after selecting the correct name, check the account's database permissions and whether the expected records are present in that exact database. [← Back to Databases FAQs](https://help.iagenify.com/faqs/databases)
