For Players getting their tools back when they die, you can simply modify the script which gives the Player the tool, and clone the tool to add to the Player’s StarterGear. Read about StarterGears here.
As for saving a Player’s backpack to a Datastore, you may read this separate Community Tutorial, which focuses more in depth on how to do so.
Happy Scripting!