Code sql updated and code refractory for showing the discharge vs rainfall vs temp