add model and db config