Democrats come to terms with unexpected election results