fixed Restore-Database, replaced $smo with $server