fixup! Add events for cohort modifications

Move event tracking backend definition for bok choy tests and make it
use the test database, which gets cleaned up.