@Override
	public void importScan(NessusClientData scan) {
		PreparedStatement pstmt = null;
		try  {
			String scanUuid = UUID.randomUUID().toString();
			pstmt = connection.prepareStatement("INSERT INTO scans (UUID, NAME) VALUES(?,?)");
			pstmt.setString(1, scanUuid);
			pstmt.setString(2, scan.getPolicy().getName());
			pstmt.executeUpdate();
			pstmt.close();
			log.finest(String.format("Successfully added scan record: %s", scanUuid));
			
			for(ReportHost host : scan.getReport().getReportHosts())  {
				String hostUuid = UUID.randomUUID().toString();
				pstmt = connection.prepareStatement("INSERT INTO hosts (UUID, SCAN_UUID, HOSTNAME, IP) VALUES(?,?,?,?)");
				pstmt.setString(1, hostUuid);
				pstmt.setString(2, scanUuid);
				pstmt.setString(3, host.getName());
				pstmt.setString(4, host.getAddress());
				pstmt.executeUpdate();
				pstmt.close();
				log.finest(String.format("Successfully added host '%s' to scan '%s'.", host.getName(), scanUuid));
				
				for(ReportItem item : host.getReportItems())  {
					String vulnUuid = UUID.randomUUID().toString();
					pstmt = connection.prepareStatement("INSERT INTO vulns (UUID, SCAN_UUID, HOST_UUID, DESCRIPTION, CRITICALITY, SEVERITY, SOLUTION, SYNOPSIS, PLUGIN_NAME, PLUGIN_FAMILY) VALUES(?,?,?,?,?,?,?,?,?,?)");
					pstmt.setString(1, vulnUuid);
					pstmt.setString(2, scanUuid);
					pstmt.setString(3, hostUuid);
					pstmt.setString(4, item.getDescription());
					pstmt.setString(5, item.getRiskFactor());
					pstmt.setInt(6, item.getSeverity());
					pstmt.setString(7, item.getPluginName());
					pstmt.setString(8, item.getPluginFamily());
					pstmt.executeUpdate();
					pstmt.close();
					log.finest(String.format("Successfully added vulnerability record '%s' for host '%s' and scan '%s'.", vulnUuid, host.getName(), scanUuid));
					
				}
			}
			
		}catch(SQLException e)  {
			log.warning(String.format("Could not import scan: %s", e.getMessage()));
			
		}finally{
			if(pstmt != null)  {
				try  {
					pstmt.close();
				}catch(SQLException e) {}
			}
			
		}
	}