Added query and shell script to log transaction locks.
Added a "No Stats Table Check" to accompany the bloat check.