Baby P did not die because of the failure of one (female) doctor. I suspect he wouldn't have survived the injuries he went in with. But one of the reasons the doctor did not undress him and examine him was because it wasn't made clear on his notes - or at least the ones she saw - that he was a child at risk. So a big part of the reason why his mother and her boyfriend were able to beat him to death was lack of proper record keeping and analysis of his situation. I am not confident a database is the cure for this.