async def addDB(request):
    logger.debug('Adding DB')
    client = request.app['arango']
    sys_db = client.db('_system', username='root', password=os.environ['MULTINET_ROOT_PASSWORD'])
    name = request.match_info['name']
    if (not sys_db.has_database(name)):
        sys_db.create_database(name)
    else:
        logger.info('Request to add db {} is a no-op because database is already present'.format(name))
    return web.Response(text=name)
async def addDB(request):
    logger.debug('Adding DB')
    client = request.app['arango']
    sys_db = client.db('_system', username='root', password=os.environ['MULTINET_ROOT_PASSWORD'])
    name = request.match_info['name']
    if (not sys_db.has_database(name)):
        sys_db.create_database(name)
    else:
        logger.info('Request to add db {} is a no-op because database is already present'.format(name))
    return web.Response(text=name)