poll sql _state table on #regenerate click
make datetimes actually work