Not sure, but is DROP INDEX ok if the index doesn't exist?  Is there DROP INDEX IF EXISTS or similar?