How would I save if a player bought something?

I think you should look into ProfileService as it does basically the same thing as datastore2 but has Session Locking making item duplication and things like that impossible.

To save if a player has bought a building(s) you should make a table of BoolValues and then save that.