Add ensure_indexes command