Sql optimization

Fixes loads of SQL speed issues.

If using without installed, add next indexes manually with snippet or method you prefer:

$manager = $modx->getManager();
$manager->addIndex('disBoardClosure','PRIMARY');
$manager->addIndex('disCategory','rank');
$manager->addIndex('disSession','PRIMARY');
$manager->addIndex('disSession','place');