Add column 'update_thumbnail' to the local files db for controlling the update of the thumbnails when images are updated on the server