escape_identifier is aware of db.raw
extract options does not consider raw values
gen_index_name is aware of raw, add specs