Improve analytics db flushing.
Add support for persisting overall views to Redis db.