fixing last insert ID method for mssql