Fixed two bugs in db update methods - in dbo and table model