Read queries from config