db update_batch small bugfix