Second Version. Fully functional. #ToDo: Make mongodb changes to use separate tasks per task_id