last I extracted (and migrated) WA from iOS I used idevicebackup2 and a util ideviceunback to get a decrypted sqlite database. From there it's sqlite schema discovery that is documented in multiple places, e.g. https://gist.github.com/paracycle/6107205 - the method of an decrypted backup skips the elaborate steps outlined in the article.