Added functions to convert 24-h format to 12-h time format and to manage data in schedule table.