Yep, and the Mexican War only made matters worse.
Damn Zachary Taylor. He had defeated the Mexican Army and was in Mexico City in 1848. He should have stayed and we could have annexed the whole country and some one hundred and sixty odd years later Mexico would today be a state(or states) on the order of New Mexico or Arizona.