only write BLAST database for searching when necessary