Re-factored the BLAST query controller method