Adding two functions. A sanitycheck function, and a spam detection.
Sanitycheck-mysql : Sanity Check has been tested only on mysql at the moment. It's running the sanitycheck which is stored in /var/lib/xinit/ directory. Run on a specific database, entered interactively.
Spamdetection-mysql : Detect any page having more than X comments. It's defined by "SPAM_THRESHOLD" in /etc/xinit/xinit.cfg (default=50). Run on every database on the running mysql instance.