MySQL query audit module, original version.