added a script to update photos on the database, should be run once