Initial identity collection in the database

Define the initial identity structure in the database, and tests.
log i each time through, and c.Check?