added database con + a model