add model and db connection