#728 Fix bug in db_update