added database validation/class validation
almost got end time to work