added token count based output, option for prefix length during db generation