code: @Override
  	public synchronized RecordAlert write(int scanId, int pluginId, String alert, 
              int risk, int confidence, String description, String uri, String param, String attack, 
              String otherInfo, String solution, String reference, String evidence, int cweId, int wascId, int historyId,
              int sourceHistoryId, int sourceId) throws DatabaseException {
          
          try {
  			psInsert.setInt(1, scanId);
  			psInsert.setInt(2, pluginId);
  			psInsert.setString(3, alert);
  			psInsert.setInt(4, risk);
  			psInsert.setInt(5, confidence);
  			psInsert.setString(6, description);
  			psInsert.setString(7, uri);
  			psInsert.setString(8, param);
  			psInsert.setString(9, attack);
  			psInsert.setString(10, otherInfo);
  			psInsert.setString(11, solution);
  			psInsert.setString(12, reference);
  			psInsert.setString(13, evidence);
  			psInsert.setInt(14, cweId);
  			psInsert.setInt(15, wascId);
  			psInsert.setInt(16, historyId);
  			psInsert.setInt(17, sourceHistoryId);
  			psInsert.setInt(18, sourceId);
  			psInsert.executeUpdate();
  			
  			int id;
  			try (ResultSet rs = psGetIdLastInsert.executeQuery()) {
  			    rs.next();
  			    id = rs.getInt(1);
  			}
  			return read(id);
  		} catch (SQLException e) {
  			throw new DatabaseException(e);
  		}
      }
docs: /* (non-Javadoc)
  @see org.parosproxy.paros.db.paros.TableAlert#write(int, int, java.lang.String, int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int, int, int)