What document did the pilgrims create that started the foundations of direct democracy in the colonies?

the Mayflower Compact