add model class

use gii from sql to model