Initial identity collection in the database

Define the initial identity structure in the database, and tests.
re dave's previous comment, we could run a transaction with no update/insert, and just an assert, to check that the hash/salt/deactivated still match.