add db for thumbnails