looks like i was pseudo coding this or something... it didn't work at all before. it works now. sort of at least
adding a script to help me delete all the crap off the pi and make a real db of photos