substitute DEFAULT_DB_ALIAS for db. remove the value under the 'ignorenonexistent' key from the options dictionary, assign it to the ignore, if the entry doesnt exists,
ignore = options . pop ( 'ignorenonexistent' , False )