ThreadConnection con = null;
FiltredPreparedStatement statement = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
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();