Added UNIQUE to TypeTimes table query to maintain database integrity.