add struct dg_query