onedb upgrade: fix bug in local_db_versioning update