How is the declaration related to John Locke's idea of the social contract?

http://americanhistory.about.com/od/usconstitution/g/social_contract.htm

http://www.academia.edu/3138759/Social_Contract_Theory_by_Hobbes_Locke_and_Rousseau