code: @Override
  	public synchronized void updateHistoryIds(int alertId, 
              int historyId, int sourceHistoryId) throws DatabaseException {
          
      	SqlPreparedStatementWrapper psUpdateHistoryIds = null;
          try {
          	psUpdateHistoryIds = DbSQL.getSingleton().getPreparedStatement("alert.ps.updatehistoryid");
  			psUpdateHistoryIds.getPs().setInt(1, historyId);
  			psUpdateHistoryIds.getPs().setInt(2, sourceHistoryId);
  			psUpdateHistoryIds.getPs().setInt(3, alertId);
  			psUpdateHistoryIds.getPs().executeUpdate();
  		} catch (SQLException e) {
  			throw new DatabaseException(e);
  		} finally {
  			DbSQL.getSingleton().releasePreparedStatement(psUpdateHistoryIds);
  		}
      }
docs: /* (non-Javadoc)
  @see org.parosproxy.paros.db.paros.TableAlert#updateHistoryIds(int, int, int)