Store aka hosts in database

This means we will record hits against AKA hostnames when they appear in the logs from our CDN.

As a side effect, it simplifies the code for the hosts API and fetching DNS details.