A bit of guidance needed - Datastore to server action

Hopefully this will make sense:

It was rushed so may need to be polished a bit.