Database 'will put children at risk'