Fix SQL for MSSQL to fix accounting stop information and add gigawords calculation for MSSQL