Moved the $status = Yii::app()->user->user($id)->status; inside the !isGuest code block so it's only called when the used is logged in.
Issue #71: Changed "User data" for "Your data" in the menu.
Added a method to compute the time it takes (roughly) for queries to gather results. Results are written to a text file in /tmp folder.
Added calls to the new method (logQueryTime) in the ADbHelper helper class in order to compute the time it takes for every query to return its results.
Added DB_DEBUG_FILE constant
Fixed a javascript error with the name of a variable.
Removed query logs and added LIMIT clauses to some queries for optimization.
Added migrations: Some index are created and function _getRiskTotal is rewritten.
Fixed the risk level icon & name in the evil data page.
removed helpers.php include
added index-test.php and some tools for sql debugging