modified for new column "pivot_notes" in db