send reminder query improvment for