Changed the Data and index size data type to int, reordered data insertion and proc creation so demo works.