If you use a Gmail account and have it set up on your phone to sync email, contacts, and calendar, than nothing should be lost. An OTA update itself should not wipe any of your data unless you choose to do so. Something must have gone wrong or you didn't have your account set up properly to sync with Gmail if you lost your contacts before.