Merge pull request #617 from kazoompa/feature-OPAL-2594

feature-OPAL-2594 - if not table names are specifies, retrieves the tables from datasource
feature-OPAL-2594 - simplified code to have the same structure as other permission commands