Extend CDB_UserTables to take an optional permission type string

Supported types: private, public, all
Adds test case 
Closes #254