Write thumbnails to database by tab id

Previous url based tab thumbnail update caused thumbnail changes
for the non active tabs that had the same url as the active tab.
Prepare database query for DBWorker::updateThumbPath only once
Add initial benchmark tests for dbmanager
Merge pull request #93 from rainemak/thumbnailFix

Write thumbnails to database by tab id