public void addPreviousNames(String namez) {
        previousnames += " || ";
        previousnames += namez;
        Connection con = DatabaseConnection.getConnection();
        PreparedStatement ps = null;
        try {
            String sql = "UPDATE `characters` SET `previousnames` = ? WHERE `id` = ?";
            ps = con.prepareStatement(sql);
            ps.setString(1, previousnames);
            ps.setInt(2, id);
            ps.executeUpdate();
            ps.close();
        } catch (SQLException ex) {
            ex.printStackTrace();
        } finally {
            if (ps != null) {
                try {
                    ps.close();
                } catch (SQLException ex) {
                    ex.printStackTrace();
                }
            }
        }
    }