fixed my mistake about last improvement for supporting yii user, that was for older db structure