someone created DB cleanup script 2 years ago for CE version, just wondering if there's a script for EE 1.14?
https://gist.github.com/frozenminds/8d5df87493f8eab2bc1e