restore finished tables
update wsgi script