[0] https://en.wikipedia.org/wiki/Terrain_awareness_and_warning_...
That works well when you're straight and level, attentive, and the radar can point at the ground. This system can't rely on radar exclusively though because the aircraft may not have its radar pointing at the ground (as in the video, the aircraft is inverted in a pretty steep dive).
So, they have to factor in precision INS/GPS and known topology to assess terrain altitude in order to perform collision avoidance.
I assume no geological process alters the land drastically enough, quickly enough, that you'd notice, but what about water-level changes (dammed rivers?), melting glaciers, etc? Is "hard" ground consistent enough that no human processes are going to cause the data to diverge from the database drastically without the chance to update the database with new topographical surveys?