organized archive into functions, added .wav archive
added error archiving.  reactivated db archiving
additional formats