Catching index already exists error