updating spec document and creating datascripts for tables