add task to mongodb