Fix unprocessed_accessions_report SQL to work for both MYSQL and Derby