Get-SPContentDatabase | ?{$_.NeedsUpgrade -eq $true} | Upgrade-SPContentDatabase
Get-SPDatabase | ? {$_.NeedsUpgrade -eq $true} | Upgrade-SPDatabase