That shouldn’t happen. Maybe you looked at the wrong place for your cards? Anki updates don’t modify your sqlite database, so what you’re describing is quite odd.
To make sure, you can just export your entire collection and save it to a safe place, though. And if the cards actually do seem to disappear again after the update, then feel free to open a topic here on the forums and we can have a look.