Far more compact version!
my_db.connect(**st.secrets.db_credentials)
```
Edit your app's secrets
Go to https://share.streamlit.io/
Open the menu for your app, and click "Settings".
   
You will see a modal appear. Click on the "Secrets" section and edit your secrets.
   
After you edit your secrets, click "Save". It might take a minute for the update to be propagated to your app, but the new values will be reflected when the app re-runs.
Develop locally with secrets
When developing your app locally, add a file called secrets.toml in a folder called .streamlit at the root of your app repo, and copy/paste your secrets into that file.
Be sure to add this file to your .gitignore so you don't commit your secrets!
