update logic for rockdb