Changed the tasks table so that it properly references the Folders table and both of them enforce uniqueness on names. Still editing the TaskViewController view of the database. Will get more work done tomorrow.