You should cut down on the amount of unnecessary code you are writing, and not use Datastore2 as it’s unreliable. I suggest using ProfileService; it protects against data loss, patches item duping exploits, and has a global update system.
If you’re interested in switching, take a look here.