Bugfixes and cleanup MS SQL Server installation