public void sendNote(String to, String msg) {
        Connection con = DatabaseConnection.getConnection();
        PreparedStatement ps = null;
        final String sql = "INSERT INTO notes (`to`, `from`, `message`, `timestamp`) VALUES (?, ?, ?, ?)";
        try {
            ps = con.prepareStatement(sql);
            ps.setString(1, to);
            ps.setString(2, this.getName());
            ps.setString(3, msg);
            ps.setLong(4, System.currentTimeMillis());
            ps.executeUpdate();
        } catch (SQLException ex) {
            System.err.println("Error Sending Note : " + ex);
        } finally {
            if (ps != null) {
                try {
                    ps.close();
                } catch (SQLException e) {
                    System.err.println("Error Sending Note : " + e);
                }
            }
        }
    }