moved sql for table cration to SQL class