small change to database update