Inquiry into £6bn NHS database