Fixed data type handling for starttime and endttime columns to get correct datetime values entered into DB.