Add index checking and creation to command-line interface
Remove deprecated script - now replaced by proper CLI