chapter Database and models completed