update update-links-to-database.php

the uploaded image or file link will look like

http://example.com/gallery/image.jpg
http://example.com/gallery/sample.txt