Last week we added code to the Grading system for writing to JSON files.
Add a variation of the data source you designed that allows reading from an actual Postgres database.
For questions: See the material from your Database module.