> Presumably if I bought WhatsApp, I would legally be allowed to query some database for someone's phone number if I so chose because I now own the database.
It's not your data.
It's your users' data.
So no, you may own the database, but you do not own the data.