Extends Yii active record model to use with multiple tables in multiple databases