Changed DateTime to Time in db