@revelette1,
I do think that praying may be helpful as a relief for the relatives of the victims of the shooting.
I don't think, praying will generally solve the problem.
Nor is the idea of focusing on mental illness(es) any help: the connection between mental illness and mass shootings is weak, very weak at best.
Mentally ill people can sometimes be a danger to themselves, less often to others. But using a firearm to do so - there's very little to none source proving such is actually done by mentally ill people. (And even if it was so: why only/mainly in the USA?)
(On older [2016] report:
Mass Shootings and Mental Illness)
But whatever: nothing will make the innocent victims alive.
Perhaps these dead children are really a price worth all the freedoms you've got in the USA. (You have to break an egg to make an omelet?)