Fixed granularity function of MSSQL statistics query (getdate should be tstamp)
Added script for setting up mssql raw_stats table