removing update_task_status and TaskStatusManager and replacing update with mongoengine queries