systematic names: prune_*() -> sql_prune_*()