Then in 1832 , Franklin was elected Democrat to the 23rd and 24th of Congress from March 4 , 1833 , to March 4 , 1837 . In 1832 , Pierce was elected as a Democrat to the 23rd and 24th Congresses ( March 4 , 1833 -- March 4 , 1837 ) .