added a safety check to api/converter/retrieve to avoid deleting running
tickets, added a cron script which deletes expired tickets from the db