Add database only when using spelling to generate terms