WIP - function getAllPendingTasksAndCategories seems to be fine
sync