Corrected error in readData sql query
Added plot2