If black/whitelist is affected, exchange pihole-FTL.db with gravity.db if you try to repair it.
pihole-FTL.db
gravity.db