fixed updating script against 4 populated db: 0,1,2,3->4