Initial identity collection in the database

Define the initial identity structure in the database, and tests.
I think you need to call Refresh internally, then you'll have to deal with the error