Ensure index creation on startup