Found that the issue was when I originally passed the data from the postgres table to the ejs file in the GET route not included above, I had only included the two columns that showed up rather than the entire table.
Changed database query from this:
db.query("SELECT task_description, color FROM tasks WHERE section='To Do'");
To this:
db.query("SELECT * FROM tasks WHERE section='To Do'");