add model and db controller