check Last-Modified and update database