Prepare database query for DBWorker::updateThumbPath only once
Add initial benchmark tests for dbmanager