correction on index truncate
Create index if not exists