Is my script secured enough?

theres already lots of modules/wrappers you could use to ease your datastore managing; you could use Datastore2 which @bluebxrrybot has mentioned; or you can use ProfileService which has a more robust usage and freedom;