functions for datastore creation, including its elements.