Add moreTables settings for selectQuery function