Where is the data about the friends and groups stored? 2022 latest answers

Where the likes stored are and what would they be used for?

Where is the pharmacy inventory data stored?