freeing pg dir nd tables