Datastore factory for model creation