Only add host to hosts table if it's in the top.. 200
Allow isIdentical keys check to be in any order.
Remove getTop5Interests and just have getTopInterests take an optional arg.
Hardcode 200 site limit for most frecent sites for addInterestForHost query.
Init the API with the window to show doorhanger prompts.
Normalize diversity computation by count of distinct host_ids in interests_hosts table.
Ignore documents without a host by having _getPlacesHostForURI return empty for host-less URIs.
Negative tests for addInterestForHost: adding non-existent hosts,interests and hosts outside 200 most frecent
Create a frecency index on moz_hosts.
Fix empty title exception and null interest insertion.
added corresponding unit tests for both failures
tests for whitelist checking in web API
Add a helper to create, cache and execute queries.
Move some test-only methods into head_interests and update with the new query style.
Add a helper to convert date to days in preparation to store days instead of dates for visits.
Add a helper to extract the namespace from a full interest name.
Combine metadata table into the main interests table and expose setInterest/getInterests to access it.
Update moz_up_interests_hosts to moz_interests_hosts and implement new addInterestHost from addInterestForHost.
Update moz_up_interests_visits to moz_interests_visits with days and visits instead of date_added and visit_count and change statements to use that new structure.
Convert clearRecentInterests to clearRecentVisits with the new query style.
Convert getBucketsForInterest to getBucketsForInterests with the new query style.
Rework the service's getTopInterests to chain multiple promises together now that diversity and buckets accept an array of interests. Remove the service's wrapper for getBucketsForInterests and update callers to directly call storage.