tinkering with Photo Upload; photos are being uploaded to server but not inserted into Photos table. Lots of debugging text for now. Will reomove later.