Handle "no privileges" in table and db functions.

Also fix the description creation in the table priv testing function.