Updating directory thumbs sql