ensure indexes at first startup