Fixed erroneous sql scripts (new column "progress" in waiting_event table)