Add auth_identity to schema.
Move logging tables to separate file.