get rid of pdb, better messaging, only update last_successful_upload if 200/201 returned.