Revert "list tables query has to..."

Did break the query test, needs a proper fix

This reverts commit 713d791baf6144792b00a61891b418b5e8246014.