how did the federalists party views on burgeoing democracy and the war of 1812 lead to its eventual decline