Fixed issue in TaskDao (and the test) where program would crash on trying to archive an already archived task. Added code to ProjectDaoTest as part of trying to get testArchiveProject to work. Closes #753