now incorporating all the steps to get proper authentication to edit the tables