Added automatic index creation on first startup