Initial identity collection in the database

Define the initial identity structure in the database, and tests.
please move this to a common helper function in this package