Fixed major design flaw in converting database time to the id fields of the select boxes.

Retested the timeslot system, made minor modifications.