def getOrCreateNew(couchServer, dbName):
    """ Get a couch Database object given dbName. If dbName is not existed,
        create a new database.
    """
    try:
        db = couchServer[dbName]
    except:   # couchdb.http.ResourceNotFound
        db = couchServer.create(dbName)
    return db