The US president tried to sell the idea of a booming economy, while taking a darker tone on the Democrats as the mid-term elections loom.