Added named scopes to search records by status 
(http://www.yiiframework.com/doc/guide/1.1/en/database.ar#named-scopes)