Update to new database ids.