remove error tasks from database
update destinations if we do not have them
add unit test