Properly set the result value for incomplete
Updated wave_summary and timestamp column name

Added time_end column to the wave_summary table to signify when the wave
ended
Renamed all timestamp columns to time_end
Fixed typecasting error with the time variable

Forgot to typecast to timestamp SQL type