Democrats urged to stick together after Hamilton wins tough mayoral primary