update Database model