public static function getList($params) { if (static::needDatabaseUpdate()) { static::updateDatabase(); } return parent::getList($params); }