This introduces Postgres as a backing store for metrics.

IMO this CSV stuff could go in its own class.