Fixes invalid drop index SQL command