code: protected final void doInsert(Connection c) throws SQLException {
  		PreparedStatement stmt = null;
  		try {
  			stmt = c.prepareStatement("insert into foo values (?, ?)  ");
  			stmt.setInt(1, rand.nextInt(99999));
  			stmt.setString(2, "This is a text");
  			stmt.executeUpdate();
  		} finally {
  			if (stmt != null) {
  				stmt.close();
  			}
  		}
  	}
docs: Executes prepared insert into table <i>foo</i>.
  
  @param c connection to DB
  @throws SQLException if something goes wrong