Document functions a bit more.
Refactor to use tweets only from db for most metrics.