As separate task we need to refactor this part of api
```
        user_data = web.input()

        if  hasattr(user_data, 'cluster_id'):
            cluster_id = None if user_data.cluster_id == 'None' else user_data.cluster_id
            tasks = self.db.query(Task).filter_by(cluster_id=cluster_id).all()
        else:
            tasks = self.db.query(Task).all()
```