Model and database