better checking of whether yii connect working or not