Fix bug with PluginManager in install/dbperform.php
Refactor cron_calculate_statistics function
Update Database::throwException function

Now it returns previous set value.
Set Database::throwExceptions back in cron_index_message
Set Database::throwExceptions back in calculate statistics funcs