Fix an issue deleting an item with no subtasks. When automatically refreshing the view, only the local database will be queried. Still some issues to fix.