# Week5
Over the past week, I completed the transition of Lighthouse's Postgres backend from signle-table model to per-`DBColumn` table design. This involved:
* Defining dedicated table names for each [DBColumn](https://github.com/sigp/lighthouse/pull/7685/commits/b77ca6dc8c71271b0ab1042145ba87d6868cbeb9)
* Refactoring all Postgres access to use column-specific tables
* Making the column-to-table mapping exhaustive to prevent [runtime](https://github.com/sigp/lighthouse/pull/7685/commits/b77ca6dc8c71271b0ab1042145ba87d6868cbeb9) errors.
This change was based on mentor's feedback to simplify data management and optimize schema clarity.
I also cleaned up compiler warnings and adjusted pattern maching to be exhaustive and robust -- laying the groundwork for a more productioon-ready backend.
## Test suite success and integration
After the refactor, I ran the full store test suite with Postgres enabled and confirmed that all tests pass. This gave me confidence that the new schema logic is sound and doesn't break existing functionality.
I also addressed a compiler error due to unhandles variants and fixed pattern matching logic to pass the build cleanly.
## What's next?
* Continue integrating PostgresDB with the Lighthouse config system
* Begin wiring PostgresDB into the wider Beacon Node runtime