add if not exist clauses to index creation