testing the ajax call for scan.php, writing test output into database