def METHOD_NAME(self):
    """
    Create a new on-disk database.
    :raises anydbm.error: If there's a problem creating the database.
    """
    logger = logging.getLogger(__name__)
    if self.filename:
        logger.debug('server %s - create - will open db', time.time())
        self.db = anydbm.open(self.filename, "n") #raises anydbm.error
        logger.debug('server %s - create - setting type', time.time())
        self.db["--Reserved--type"] = self.type
        logger.debug('server %s - create - syncing', time.time())
        self.db.sync()
        logger.debug('server %s - create - fun exit', time.time())
    else:
        logger.debug('server %s - create - using dict() as DB',
                     time.time())
        self.db = {}