async function getRepository(name) {
        SA.logger.info('Requesting access to ' + name + ' table')
        switch (name) {
            case 'migrate': 
                return await getDbContext().migrate()
            case 'users':
                const repo = require('../Repositories/UsersRepository').newUsersRepository(getDbContext())
                await repo.initialize()
                return repo
            default:
                throw new Error('The database repository ' + name + ' is not implemented, why not create it yourself.')

        }
    }
@param {string} name 
@returns {Promise<void|import('../Globals/Persistence').PersistenceModel>}