Database model and data update