How can I get the name of my postgres database? from fly.io?

→ Pushing image done
Image: registry.fly.io/chatapp:deployment-1646282761
Image size: 123 MB
04:49:27.651 [error] Postgrex.Protocol (#PID<0.135.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (chatapp-db.internal:5432): non-existing domain - :nxdomainWWWWWWWWWWWWWWW
* The database does not exist
* There is a deadlock while migrating (such as using concurrent
Error Release command failed, deployment aborted

Even tried connecting aws database not working for me

--> Pushing image done
Image: registry.fly.io/chatapp:deployment-1646284589
Image size: 123 MB
         05:20:05.286 [error] Postgrex.Protocol (#PID<0.136.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) no pg_hba.conf entry for host "147.75.55.183", user "msehuzgynmwzfy", database "d8ju7vj4h3qh9p", SSL off
         05:20:05.828 [error] Postgrex.Protocol (#PID<0.135.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) no pg_hba.conf         05:20:06.093 [error] Could not create schema migrations table. This error usually happens due to the following:
           * The "schema_migrations" table, which Ecto uses for managing
             indexes with a migration_lock)
             config :fchatapp, Fchatapp.Repo,
               migration_repo: AnotherRepoForSchemaMigrations
Error Release command failed, deployment aborted

I tried to answer that here: Im not able to connect database for deployment - #2 by rugwirobaker