Obama says goodbye, rally spirits of Democrats