SQL scripts that help investigating performance issues