revamped db structure so each subassembly is like a survey, join table between machine and tasks to record status of each task instance