Better detection of DM/SDM from database details, as DM might not have children.