add db and model class