I'm not quite sure what you want. Local variables are used to pass variables from the calling step to the called sequence. In the calling step, you use Locals.xxx, where xxx is the name of the variable being passed. In the called sequence, the xxx must exist as a Parameter, not a local, and is called Parameter.xxx. If you want to store these parameters to a database, use Parameters.xxx or Locals.xxx depending on if your database steps are in the called sequence (Parameters) or the calling step (Locals).
Example:
Main Sequence
Call SubSequence1 (Locals.Number1)
SubSequence1 - Must have variable defined in Parameters tab called Number1.
(any step that uses Parameters.Number1)
If storing to database in Main Sequence, store Locals.Number1, if database steps are in SubSequence then use Parameters.Number1
I hope this is clear and what you want.
If you need to learn how to store to the database, there are examples that come with TestStand on database programming.