First implementation of CREATE OR REPLACE INDEX. Needs review.