## Database The app has its own database on the Core's shared PostgreSQL (`DEPENDS="postgresql"` in `service`): - `install` creates the user and database `{{DBNAME}}`, with the random `DB_PASSWORD` from `.env`; `uninstall` drops both (`coreapp remove` deletes the data). - The app reads `DB_HOST` (`postgresql.`, which only resolves on the Core's `core` network), `DB_PORT`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` from its environment. `app.py` shows how, with `psycopg`. - Look at the data: `coreapp-vm ssh docker exec -it postgresql psql -U postgres {{DBNAME}}`.