Removed mongo client from params to tasks

Mongo client is not serializable