You cannot access the „included“ postgres database from outside. You can use another database which you can access with other tools. For cloud deployment see https://docs.mendix.com/refguide/custom-settings/#4-database-settings
for running local see https://docs.mendix.com/refguide/configuration/#database