check declarations are current
if a declaration is deleted, the row is still there with a is_current=0 flag