Changed the discharge units to m3/sec
Added the update_db function to send all flow data to postgresql