switched deleting/flagging pics to master db