Yii database extensions