Look at the top of just about every vbulletin script. You'll see something like this:
Code:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
);
That pulls the datastore items into the code you are going to use. All you have to do after that is refer to them.