async function newPersistenceStore(storeType, name) {
        SA.logger.info('Using ' + storeType + ' for local storage')
        switch (storeType) {
            case 'file':
                return require('../Internal/FileStore').newFileStore(name)
            case 'database':
                return await getDatabaseRepositories().getRepository(name)
            default: throw new Error('The store type ' + storeType + ' is not implemented, why not create it yourself.')
        }
    }
Returns a new implementation of the chosen data store, 
if the storeType does not match any of the current 
implementations then an error is thrown.

@param {string} storeType 
@param {string} name 
@returns {Promise<PersistenceModel>}