code: public static int update(PreparedStatement stmt) throws SQLException {
  		int rows = stmt.executeUpdate();
  		stmt.close();
  		return rows;
  	}
docs: Execute the insert, update, or delete statement, get the number of rows affected, and close
  the statement.
  
  @param stmt
  must already have parameters set
  @since 1.4.0