record identity to db