changed order of operations for table creates
constraint fixes to tables
added more tables for attribs and elements
Creating sql for xml db tables