Fix an error with manually entering CP.
Add the start of a metrics database.