add data query creation