Trying to delete adlist table, got Error: FOREIGN KEY constraint failed (19)

It's not. On the contrary, the sqlite3 from your OS repos does not follow the sqlite maintainers which recommend to compile the binary with a flag that always respects FOREIGN KEY constraints.

Totally different issue, but same reason for failing with a lot more information about the foreign key constrains. Start reading the thread from here: