fixed an archiving issue where images where sent to the trash before they could be archived
added a command-line tool to export the pessto classifications from the database