add back basic query script