In that passage, Moses gave instruction about how parents should teach their children because loving God doesn't come naturally. Children have to be taught in word and deed. Knowing about God isn't happenstance.
The family is the ideal place to teach children about relationships.
Francis Xavier said:
"Give me a child until he is seven; anyone else can have him for life."
Any child who is introduced to God by the time he is 12 will more than likely serve God for the rest of his life. Values should be taught more than they should be caught.
Adjust your understanding. Moses did not tell the Israelites to search the scriptures. Moses told them to spend time with their children and teach as they sit with them and as they walk with them.
In Deuteronomy 6:5-9, Moses said:
"These commandments that I give you today are to be on your hearts. Impress them on your children. Talk about them when you sit at home and when you walk along the road, when you lie down and when you get up. Tie them as symbols on your hands and bind them on your foreheads. Write them on the door frames of your houses and on your gates."
Parents are to teach their children the value of a relationship and responsibility to family and God.