# Nobody knows what writes to a table

Prompts to start with when a PostgreSQL database shows this problem.

- [Map every place that writes to the database](https://atlasscope.dev/prompts/map-every-place-that-writes-to-the-database): Several jobs, functions, APIs or agents change the same data, or nobody is sure who owns it.
- [Find where write logic should live](https://atlasscope.dev/prompts/find-where-write-logic-should-live): Business rules are split across SQL, triggers, edge functions, server routes and workers.
- [Updates that overwrite each other](https://atlasscope.dev/prompts/updates-that-overwrite-each-other): Finds updates that overwrite newer data because two things wrote at once.

Source: https://atlasscope.dev/fix/nobody-knows-what-writes-to-a-table
