Fixed issue where duplicate tasks were showing up in servlet.
Tasks are now properly added to and stored in the database.