Add mongo id generation.