major improvemens

implementation of reading simulation inflows from database
including area and volume piecewise function
better printing in simulation
and saving into database
hydropower improved

hydropower improved
debugging error

improving error in selecting middle inflow for hydropower