Adds max date update
Adds max date update

after committing the insert the script updates the layerspec table with the maxdate +1 (assumes maxdate will be end of the month).

I've created a layerspec_table variable, and it's set to a staging table for now, when we make sure this works we can change it to the production one, or set it as an argument in the function

Warning: be very cautious when writing to the layerspec table, as it holds the entire layer configuration
wri/gfw-sync,wri/gfw-sync