Show only active tasks

- Added a function that returns all tasks that are not done
- Unified output of functions that retrieve tasks from the data base

closes #4