added some sql execution constraints and deleted unused worker mod