Display a warning and create index on first startup.

Signed-off-by: Kavith Thiranga Lokuhewage <rc404mekt@gmail.com>