statement = con.prepareStatement("REPLACE accounts (login, password, access_level, comments) VALUES (?,?,?,?)");
statement.setString(1, account);
statement.setString(2, Base64.encodeBytes(newpass));
statement.setString(3, level);
statement.setString(4, comments);
statement.executeUpdate();
}
finally
{
DatabaseUtils.closeDatabaseCS(con, statement);
}