edited the table for the purchases