query data after sending form