Fix database cleaner
Fix finding single tasks and add first version of update function