adding query custom sql mail list