added models and db config