Replace in-memory JSON file storage with Prisma ORM using PostgreSQL. Update environment variables and Prisma schema accordingly.