Rewrote check_mssql_database and fixed a bunch of checks based on CTrahan's observation that the values would return incorrect results under loaded conditions.