Adding support for prefix in TableService.queryTables

Issue #792