Great Script, Just a small tweak if i may;
The 'Order By' clause you use on line 45 does not really work as the data column is a nvarchar and contains " KB".
ORDER BY data DESC;
ORDER BY CONVERT(INT, replace(data,' KB','')) desc;
handy for databases that contain 1000+ tables
Knock Knock, Who's There?, sp underscore, sp underscore who?
spid1, spid2, spid3....