PostgreSQL stores project-related metadata, session info, and historical data for the DataLens platform, supporting agent sessions, conversation logs, findings, and GDPR flags.