Cleaned up my code a bit, added some more comments, and fully integrated the completedTasks table.